﻿/*
 * Jonathan
 * Created by: Jonathan Montiverdi
 * Date: 6/28/2012
 * License: http://jonathan.codeplex.com/license
 */
using System;
using Jonathan.DataAccess.Sqlite;

namespace Jonathan.Data
{
   /// <summary>
   /// An Excerpt from a book.
   /// </summary>
   [SqliteTable ("Data", SqliteTableType.Record)]
   public class Excerpt
   {
      /// <summary>
      /// Gets or Sets the book for the excerpt.
      /// </summary>
      [SqliteIgnore]
      public string Book { get; set; }
      
      /// <summary>
      /// Gets or Sets if this excerpt has a sub book.
      /// </summary>
      [SqliteIgnore]
      public bool HasSubBook { get { return !string.IsNullOrEmpty (this.SubBook); } }
      
      /// <summary>
      /// Gets or Sets if this excerpt has a chapter.
      /// </summary>
      [SqliteIgnore]
      public bool HasChapter { get { return !string.IsNullOrEmpty (this.Chapter); } }
      
      /// <summary>
      /// Gets or Sets the sub book for the excerpt.
      /// </summary>
      [SqliteName ("Book")]
      public string SubBook { get; set; }
      
      /// <summary>
      /// Gets or Sets the chapter for the excerpt.
      /// </summary>
      public string Chapter { get; set; }
      
      /// <summary>
      /// Gets or Sets the verse for the excerpt.
      /// </summary>
      public Int64 Verse { get; set; }
      
      /// <summary>
      /// Gets or Sets the passage for the excerpt.
      /// </summary>
      public string Passage { get; set; }
      
      /// <summary>
      /// Gets or Sets the header for the excerpt.
      /// </summary>
      public string Header { get; set; }
      
      /// <summary>
      /// Gets or Sets the footer for the excerpt.
      /// </summary>
      public string Footer { get; set; }
   }
}
